Google Cloud Logging
Cloud Logging allows you to store, search, analyze, monitor, and alert on logging data and events from Google Cloud and Amazon Web Services.
Key Features
- Fully Managed: Scales to ingest petabytes of logs.
- Real-time: Analyze logs as they arrive.
- Export: Sink logs to BigQuery, Pub/Sub, or Cloud Storage for long-term retention.
Use Cases
- Troubleshooting: Debug application errors.
- Security: Audit access logs.
- Compliance: Retain logs for regulatory requirements.
Key Concepts
- Log Entry: A single log record.
- Log Router: Controls where logs are sent (Sinks).
- Log-based Metrics: Create metrics from log data (e.g., count 500 errors).